<?php

/**
 * Description of Category
 *
 * @author gun
 */
class Web_Model_DbTable_Category extends Zend_Db_Table_Abstract {
    protected $_name = 'category';
    protected $_id = 'catID';
    
    public function findAll($where = array()) {
        $sql = $this->getAdapter()->select()
                ->from($this->_name);
        
        if (is_array($where) && sizeof($where) > 0) {
            foreach($where as $key=>$value) {
                $sql->where($key, $value);
            }
        }
        
        return $this->_db->fetchAll($sql);
    }
}

?>
